import request from '@/utils/request'

// 查询红色经典列表
export function listRelics(query) {
  return request({
    url: '/TraditionalCultureSys/relics/list',
    method: 'get',
    params: query
  })
}

// 查询红色经典详细
export function getRelics(id) {
  return request({
    url: '/TraditionalCultureSys/relics/' + id,
    method: 'get'
  })
}

// 新增红色经典
export function addRelics(data) {
  return request({
    url: '/TraditionalCultureSys/relics',
    method: 'post',
    data: data
  })
}

// 修改红色经典
export function updateRelics(data) {
  return request({
    url: '/TraditionalCultureSys/relics',
    method: 'put',
    data: data
  })
}

// 删除红色经典
export function delRelics(id) {
  return request({
    url: '/TraditionalCultureSys/relics/' + id,
    method: 'delete'
  })
}
